package tt.com.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tt.com.common.annotation.IsNull;

/**
    * 逝者家属信息
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "yx_funeral_dead_relation")
public class DeadRelation {
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 姓名
     */
    @IsNull
    @TableField(value = "`name`")
    private String name;

    /**
     * 性别
     */
    @IsNull
    @TableField(value = "gender")
    private Integer gender;

    /**
     * 与逝者关系
     */
    @IsNull
    @TableField(value = "dead_relation")
    private String deadRelation;

    /**
     * 联系电话
     */
    @IsNull
    @TableField(value = "phone")
    private String phone;

    /**
     *  证件类型
     */
    @IsNull
    @TableField(value = "id_type")
    private Integer idType;

    /**
     * 身份证号码 
     */
    @IsNull
    @TableField(value = "id_card")
    private String idCard;

    /**
     * 地址
     */
    @IsNull
    @TableField(value = "address")
    private String address;

    @TableField(value = "create_user_id")
    private String createUserId;

    @TableField(value = "create_time")
    private Date createTime;

    @TableField(value = "last_update_user_id")
    private String lastUpdateUserId;

    @TableField(value = "last_update_time")
    private Date lastUpdateTime;

    @TableField(value = "delete_user_id")
    private String deleteUserId;

    @TableField(value = "delete_time")
    private Date deleteTime;

    @TableField(value = "data_status")
    private Integer dataStatus;

    /**
     * 机构id
     */
    @TableField(value = "organ_id")
    private String organId;

    /**
     * 逝者id
     */
    @TableField(value = "dead_id")
    private String deadId;

    public static final String COL_ID = "id";

    public static final String COL_NAME = "name";

    public static final String COL_GENDER = "gender";

    public static final String COL_DEAD_RELATION = "dead_relation";

    public static final String COL_PHONE = "phone";

    public static final String COL_ID_TYPE = "id_type";

    public static final String COL_ID_CARD = "id_card";

    public static final String COL_ADDRESS = "address";

    public static final String COL_CREATE_USER_ID = "create_user_id";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_LAST_UPDATE_USER_ID = "last_update_user_id";

    public static final String COL_LAST_UPDATE_TIME = "last_update_time";

    public static final String COL_DELETE_USER_ID = "delete_user_id";

    public static final String COL_DELETE_TIME = "delete_time";

    public static final String COL_DATA_STATUS = "data_status";

    public static final String COL_ORGAN_ID = "organ_id";

    public static final String COL_DEAD_ID = "dead_id";
}